package srp6

import (
	"mangos/internal/crypto/hash"
	"mangos/internal/math/big"
)

// CalcK 通过S计算K
var CalcK = func(S *big.Int) []byte {
	sha1 := hash.Sha1Hash{}
	sha1.Init()
	sha1.Update(S.Binary(0))
	sha1.Finalize()
	return sha1.Digest()
}
